package br.com.evoluy.controle;

public class Facade {
   
    private static Facade instance;
    private ControleUsuario controleUsuario;
    private ControleProfissional controleProfissional;
    private ControlePaciente controlePaciente;
    private ControleLogin controleLogin;
    private ControleLogAcesso controleLogAcesso;

    private Facade()
    {
        this.controleUsuario = new ControleUsuario();
        this.controleProfissional = new ControleProfissional();
        this.controlePaciente = new ControlePaciente();
        this.controleLogin = new ControleLogin();
        this.controleLogAcesso = new ControleLogAcesso();
    }

    public static Facade getInstance()
    {
        if (instance == null) 
        {
            instance = new Facade();
        }
        return instance;
    }

    public ControleUsuario getControleUsuario() 
    {
        return this.controleUsuario;
    }
    
    public ControleProfissional getControleProfissional() 
    {
        return this.controleProfissional;
    }
    
    public ControlePaciente getControlePaciente() 
    {
        return this.controlePaciente;
    }
    
    public ControleLogin getControleLogin()
    {
    	return this.controleLogin;
    }
    
    public ControleLogAcesso getControleLogAcesso()
    {
    	return this.controleLogAcesso;
    }

}
